<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Low-Level</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sd__host__low__level__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Low-Level<div class="ingroups"><a class="el" href="group__group__sd__host.html">SD Host      (SD Host Controller)</a> &raquo; <a class="el" href="group__group__sd__host__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga7e46a2df218aebc23faac7acdf5260da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga7e46a2df218aebc23faac7acdf5260da">Cy_SD_Host_Init</a> (SDHC_Type *base, const <a class="el" href="structcy__stc__sd__host__init__config__t.html">cy_stc_sd_host_init_config_t</a> *config, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *context)</td></tr>
<tr class="memdesc:ga7e46a2df218aebc23faac7acdf5260da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SD host module.  <a href="#ga7e46a2df218aebc23faac7acdf5260da">More...</a><br /></td></tr>
<tr class="separator:ga7e46a2df218aebc23faac7acdf5260da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc7f356fa8eaf81ab1e4abafeb46064c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gafc7f356fa8eaf81ab1e4abafeb46064c">Cy_SD_Host_DeInit</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:gafc7f356fa8eaf81ab1e4abafeb46064c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores the SD Host block registers back to default.  <a href="#gafc7f356fa8eaf81ab1e4abafeb46064c">More...</a><br /></td></tr>
<tr class="separator:gafc7f356fa8eaf81ab1e4abafeb46064c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad14bf4c715eaa282580d89bd2be1a420"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gad14bf4c715eaa282580d89bd2be1a420">Cy_SD_Host_Enable</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:gad14bf4c715eaa282580d89bd2be1a420"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the SD host block.  <a href="#gad14bf4c715eaa282580d89bd2be1a420">More...</a><br /></td></tr>
<tr class="separator:gad14bf4c715eaa282580d89bd2be1a420"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9a54017c0d4a99ca6ec8702e9ab4a2da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga9a54017c0d4a99ca6ec8702e9ab4a2da">Cy_SD_Host_Disable</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga9a54017c0d4a99ca6ec8702e9ab4a2da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the SD host block.  <a href="#ga9a54017c0d4a99ca6ec8702e9ab4a2da">More...</a><br /></td></tr>
<tr class="separator:ga9a54017c0d4a99ca6ec8702e9ab4a2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5fc064e2e929cafa26eb11bee7324ad5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga5fc064e2e929cafa26eb11bee7324ad5">Cy_SD_Host_EnableSdClk</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga5fc064e2e929cafa26eb11bee7324ad5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the SD clock (SD host drives the SDCLK line).  <a href="#ga5fc064e2e929cafa26eb11bee7324ad5">More...</a><br /></td></tr>
<tr class="separator:ga5fc064e2e929cafa26eb11bee7324ad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae619bd70f081a40c7e213712561d3dcc"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gae619bd70f081a40c7e213712561d3dcc">Cy_SD_Host_DisableSdClk</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:gae619bd70f081a40c7e213712561d3dcc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the SD clock (The SD Host doesn't drive the SDCLK line).  <a href="#gae619bd70f081a40c7e213712561d3dcc">More...</a><br /></td></tr>
<tr class="separator:gae619bd70f081a40c7e213712561d3dcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga05c151683c3a30462faf988d6ad26ff1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga05c151683c3a30462faf988d6ad26ff1">Cy_SD_Host_SetSdClkDiv</a> (SDHC_Type *base, uint16_t clkDiv)</td></tr>
<tr class="memdesc:ga05c151683c3a30462faf988d6ad26ff1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the speed of the SD bus.  <a href="#ga05c151683c3a30462faf988d6ad26ff1">More...</a><br /></td></tr>
<tr class="separator:ga05c151683c3a30462faf988d6ad26ff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3728dc79e71af7ee2b2521b38fa7a06"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gac3728dc79e71af7ee2b2521b38fa7a06">Cy_SD_Host_IsWpSet</a> (SDHC_Type const *base)</td></tr>
<tr class="memdesc:gac3728dc79e71af7ee2b2521b38fa7a06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the state of the write protect switch on the SD card.  <a href="#gac3728dc79e71af7ee2b2521b38fa7a06">More...</a><br /></td></tr>
<tr class="separator:gac3728dc79e71af7ee2b2521b38fa7a06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae9adeccedaf9ba116531ca4192a22cd7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gae9adeccedaf9ba116531ca4192a22cd7">Cy_SD_Host_SetHostBusWidth</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#gaa37e16176a2e632a2ca02028f447a9eb">cy_en_sd_host_bus_width_t</a> width)</td></tr>
<tr class="memdesc:gae9adeccedaf9ba116531ca4192a22cd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Only changes the bus width on the host side.  <a href="#gae9adeccedaf9ba116531ca4192a22cd7">More...</a><br /></td></tr>
<tr class="separator:gae9adeccedaf9ba116531ca4192a22cd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4ae683654397bc8d3bc9c89d70bb3e98"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga4ae683654397bc8d3bc9c89d70bb3e98">Cy_SD_Host_SetBusWidth</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#gaa37e16176a2e632a2ca02028f447a9eb">cy_en_sd_host_bus_width_t</a> width, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:ga4ae683654397bc8d3bc9c89d70bb3e98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends out the SD bus width changing command.  <a href="#ga4ae683654397bc8d3bc9c89d70bb3e98">More...</a><br /></td></tr>
<tr class="separator:ga4ae683654397bc8d3bc9c89d70bb3e98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b5699a728dbab6eb0ca7d926e40a61c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga5b5699a728dbab6eb0ca7d926e40a61c">Cy_SD_Host_SetHostSpeedMode</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#ga8c324f7e5938bf4866db55490f4dac01">cy_en_sd_host_bus_speed_mode_t</a> speedMode)</td></tr>
<tr class="memdesc:ga5b5699a728dbab6eb0ca7d926e40a61c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Only updates the host register to indicate bus speed mode and the general purpose output register to select card clock input and output delay.  <a href="#ga5b5699a728dbab6eb0ca7d926e40a61c">More...</a><br /></td></tr>
<tr class="separator:ga5b5699a728dbab6eb0ca7d926e40a61c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0b48a86672163e3be31362d7b3de0730"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga0b48a86672163e3be31362d7b3de0730">Cy_SD_Host_SetBusSpeedMode</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#ga8c324f7e5938bf4866db55490f4dac01">cy_en_sd_host_bus_speed_mode_t</a> speedMode, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:ga0b48a86672163e3be31362d7b3de0730"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negotiates with the card to change the bus speed mode of the card and the host.  <a href="#ga0b48a86672163e3be31362d7b3de0730">More...</a><br /></td></tr>
<tr class="separator:ga0b48a86672163e3be31362d7b3de0730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga215d6f84f99c8177d8c5a6ae178ca67a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga215d6f84f99c8177d8c5a6ae178ca67a">Cy_SD_Host_SelBusVoltage</a> (SDHC_Type *base, bool enable18VSignal, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *context)</td></tr>
<tr class="memdesc:ga215d6f84f99c8177d8c5a6ae178ca67a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negotiates with the SD card to change the bus signaling level to 1.8V.  <a href="#ga215d6f84f99c8177d8c5a6ae178ca67a">More...</a><br /></td></tr>
<tr class="separator:ga215d6f84f99c8177d8c5a6ae178ca67a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89cf0f720dca3e57244dbb736efd0736"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga89cf0f720dca3e57244dbb736efd0736">Cy_SD_Host_EnableCardVoltage</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga89cf0f720dca3e57244dbb736efd0736"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the card_if_pwr_en pin high.  <a href="#ga89cf0f720dca3e57244dbb736efd0736">More...</a><br /></td></tr>
<tr class="separator:ga89cf0f720dca3e57244dbb736efd0736"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0991c633c61e309f5c2167296e014ee6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga0991c633c61e309f5c2167296e014ee6">Cy_SD_Host_DisableCardVoltage</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga0991c633c61e309f5c2167296e014ee6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the card_if_pwr_en pin low.  <a href="#ga0991c633c61e309f5c2167296e014ee6">More...</a><br /></td></tr>
<tr class="separator:ga0991c633c61e309f5c2167296e014ee6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad575d00f4e29d87dd3221ff84b0d855c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gad575d00f4e29d87dd3221ff84b0d855c">Cy_SD_Host_GetResponse</a> (SDHC_Type const *base, uint32_t *responsePtr, bool largeResponse)</td></tr>
<tr class="memdesc:gad575d00f4e29d87dd3221ff84b0d855c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function reads the response register from the last completed command.  <a href="#gad575d00f4e29d87dd3221ff84b0d855c">More...</a><br /></td></tr>
<tr class="separator:gad575d00f4e29d87dd3221ff84b0d855c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga98fe407a6f55d8d7ae0dd1c5defa41df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga98fe407a6f55d8d7ae0dd1c5defa41df">Cy_SD_Host_SendCommand</a> (SDHC_Type *base, <a class="el" href="structcy__stc__sd__host__cmd__config__t.html">cy_stc_sd_host_cmd_config_t</a> const *config)</td></tr>
<tr class="memdesc:ga98fe407a6f55d8d7ae0dd1c5defa41df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts sending a command on the SD bus.  <a href="#ga98fe407a6f55d8d7ae0dd1c5defa41df">More...</a><br /></td></tr>
<tr class="separator:ga98fe407a6f55d8d7ae0dd1c5defa41df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0bc6396147a2b2aa4915a2d1ef3677c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga0bc6396147a2b2aa4915a2d1ef3677c1">Cy_SD_Host_InitDataTransfer</a> (SDHC_Type *base, <a class="el" href="structcy__stc__sd__host__data__config__t.html">cy_stc_sd_host_data_config_t</a> const *dataConfig)</td></tr>
<tr class="memdesc:ga0bc6396147a2b2aa4915a2d1ef3677c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SD block for a data transfer.  <a href="#ga0bc6396147a2b2aa4915a2d1ef3677c1">More...</a><br /></td></tr>
<tr class="separator:ga0bc6396147a2b2aa4915a2d1ef3677c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8b1c2ac3b8b82b03500c4bf560322da8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga8b1c2ac3b8b82b03500c4bf560322da8">Cy_SD_Host_BufferRead</a> (SDHC_Type const *base)</td></tr>
<tr class="memdesc:ga8b1c2ac3b8b82b03500c4bf560322da8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads 32-bits of data from the read buffer.  <a href="#ga8b1c2ac3b8b82b03500c4bf560322da8">More...</a><br /></td></tr>
<tr class="separator:ga8b1c2ac3b8b82b03500c4bf560322da8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa036946603cdda48270920a197a5009e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gaa036946603cdda48270920a197a5009e">Cy_SD_Host_BufferWrite</a> (SDHC_Type *base, uint32_t data)</td></tr>
<tr class="memdesc:gaa036946603cdda48270920a197a5009e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes 32-bits of data into the write buffer.  <a href="#gaa036946603cdda48270920a197a5009e">More...</a><br /></td></tr>
<tr class="separator:gaa036946603cdda48270920a197a5009e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga307ae5aea7a503f9cac590dd895a8d36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga307ae5aea7a503f9cac590dd895a8d36">Cy_SD_Host_ChangeIoVoltage</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#ga4f01f971b4eb071a32474c7603b2e721">cy_en_sd_host_io_voltage_t</a> ioVoltage)</td></tr>
<tr class="memdesc:ga307ae5aea7a503f9cac590dd895a8d36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the logic level on the sd_io_volt_sel line.  <a href="#ga307ae5aea7a503f9cac590dd895a8d36">More...</a><br /></td></tr>
<tr class="separator:ga307ae5aea7a503f9cac590dd895a8d36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9d234202bf66b389167ea2dcfe8b710"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gab9d234202bf66b389167ea2dcfe8b710">Cy_SD_Host_StopAtBlockGap</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:gab9d234202bf66b389167ea2dcfe8b710"><td class="mdescLeft">&#160;</td><td class="mdescRight">Commands SD host to stop transmitting at the next block gap.  <a href="#gab9d234202bf66b389167ea2dcfe8b710">More...</a><br /></td></tr>
<tr class="separator:gab9d234202bf66b389167ea2dcfe8b710"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga098dd753105bd0d60e7ef828c1fdf5ba"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga098dd753105bd0d60e7ef828c1fdf5ba">Cy_SD_Host_ContinueFromBlockGap</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga098dd753105bd0d60e7ef828c1fdf5ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Commands SD host to continue transmitting after stopping at the block gap.  <a href="#ga098dd753105bd0d60e7ef828c1fdf5ba">More...</a><br /></td></tr>
<tr class="separator:ga098dd753105bd0d60e7ef828c1fdf5ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72681d651cdcb34d955e78eba3345562"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga72681d651cdcb34d955e78eba3345562">Cy_SD_Host_GetAutoCmdErrStatus</a> (SDHC_Type const *base)</td></tr>
<tr class="memdesc:ga72681d651cdcb34d955e78eba3345562"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the SD host error status of the auto command.  <a href="#ga72681d651cdcb34d955e78eba3345562">More...</a><br /></td></tr>
<tr class="separator:ga72681d651cdcb34d955e78eba3345562"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga892dfd6c9511faea425c0aa5164a4fdc"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga892dfd6c9511faea425c0aa5164a4fdc">Cy_SD_Host_EnableAutoCmd23</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga892dfd6c9511faea425c0aa5164a4fdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the card supports AutoCmd23 call this function to enable it in the host.  <a href="#ga892dfd6c9511faea425c0aa5164a4fdc">More...</a><br /></td></tr>
<tr class="separator:ga892dfd6c9511faea425c0aa5164a4fdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab3adb857290fe0a241a3bb99a8fda23d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gab3adb857290fe0a241a3bb99a8fda23d">Cy_SD_Host_DisableAutoCmd23</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:gab3adb857290fe0a241a3bb99a8fda23d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes support for AutoCmd23 if it was previously set.  <a href="#gab3adb857290fe0a241a3bb99a8fda23d">More...</a><br /></td></tr>
<tr class="separator:gab3adb857290fe0a241a3bb99a8fda23d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga27fbcd722e12d049bacb59ad580690b5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga27fbcd722e12d049bacb59ad580690b5">Cy_SD_Host_EnableAsyncInterrupt</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga27fbcd722e12d049bacb59ad580690b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the Asynchronous Interrupt for SDIO cards.  <a href="#ga27fbcd722e12d049bacb59ad580690b5">More...</a><br /></td></tr>
<tr class="separator:ga27fbcd722e12d049bacb59ad580690b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga80e93b42a4ab13cb6ada7549bde40f46"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga80e93b42a4ab13cb6ada7549bde40f46">Cy_SD_Host_DisableAsyncInterrupt</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga80e93b42a4ab13cb6ada7549bde40f46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the support for the Asynchronous Interrupt if it was previously set.  <a href="#ga80e93b42a4ab13cb6ada7549bde40f46">More...</a><br /></td></tr>
<tr class="separator:ga80e93b42a4ab13cb6ada7549bde40f46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54d0a014d47b3f894bb586ad2eab450b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga54d0a014d47b3f894bb586ad2eab450b">Cy_SD_Host_GetAdmaErrorStatus</a> (SDHC_Type const *base)</td></tr>
<tr class="memdesc:ga54d0a014d47b3f894bb586ad2eab450b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the ADMA Error Status register.  <a href="#ga54d0a014d47b3f894bb586ad2eab450b">More...</a><br /></td></tr>
<tr class="separator:ga54d0a014d47b3f894bb586ad2eab450b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga04635958742edb88535fc805f96f5be6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga04635958742edb88535fc805f96f5be6">Cy_SD_Host_EMMC_Reset</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:ga04635958742edb88535fc805f96f5be6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the eMMC card.  <a href="#ga04635958742edb88535fc805f96f5be6">More...</a><br /></td></tr>
<tr class="separator:ga04635958742edb88535fc805f96f5be6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab0b3e43c54a84f9261815171dc97f6dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gab0b3e43c54a84f9261815171dc97f6dd">Cy_SD_Host_AbortTransfer</a> (SDHC_Type *base, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:gab0b3e43c54a84f9261815171dc97f6dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calling this function causes abortion of the currently executing command with data.  <a href="#gab0b3e43c54a84f9261815171dc97f6dd">More...</a><br /></td></tr>
<tr class="separator:gab0b3e43c54a84f9261815171dc97f6dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49d3fcbc81b0856c61706015856337e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga49d3fcbc81b0856c61706015856337e9">Cy_SD_Host_WriteProtect</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#ga7b5d22232dfd02d7e11ecf4100232a38">cy_en_sd_host_write_protect_t</a> writeProtect, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *context)</td></tr>
<tr class="memdesc:ga49d3fcbc81b0856c61706015856337e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write protects the blocks of data from the SD card.  <a href="#ga49d3fcbc81b0856c61706015856337e9">More...</a><br /></td></tr>
<tr class="separator:ga49d3fcbc81b0856c61706015856337e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacfa588e2d3797fab335cc8880d59d0ee"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gacfa588e2d3797fab335cc8880d59d0ee">Cy_SD_Host_GetCardStatus</a> (SDHC_Type *base, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:gacfa588e2d3797fab335cc8880d59d0ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the card status.  <a href="#gacfa588e2d3797fab335cc8880d59d0ee">More...</a><br /></td></tr>
<tr class="separator:gacfa588e2d3797fab335cc8880d59d0ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga64d07e5873b517f19aa6b556b9558e19"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga64d07e5873b517f19aa6b556b9558e19">Cy_SD_Host_GetSdStatus</a> (SDHC_Type *base, uint32_t *sdStatus, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:ga64d07e5873b517f19aa6b556b9558e19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the SD status from the card.  <a href="#ga64d07e5873b517f19aa6b556b9558e19">More...</a><br /></td></tr>
<tr class="separator:ga64d07e5873b517f19aa6b556b9558e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab7781c74903700d79ca818fc7f50af0b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gab7781c74903700d79ca818fc7f50af0b">Cy_SD_Host_GetOcr</a> (SDHC_Type *base, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:gab7781c74903700d79ca818fc7f50af0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the Operating Condition Register (OCR) register from the card.  <a href="#gab7781c74903700d79ca818fc7f50af0b">More...</a><br /></td></tr>
<tr class="separator:gab7781c74903700d79ca818fc7f50af0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga696ef05ed804ae1fb21147bdded903a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga696ef05ed804ae1fb21147bdded903a9">Cy_SD_Host_GetCid</a> (SDHC_Type *base, uint32_t *cid)</td></tr>
<tr class="memdesc:ga696ef05ed804ae1fb21147bdded903a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Card Identification Register (CID) contents.  <a href="#ga696ef05ed804ae1fb21147bdded903a9">More...</a><br /></td></tr>
<tr class="separator:ga696ef05ed804ae1fb21147bdded903a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga19426622f0a7b92579030e0c954f4bc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga19426622f0a7b92579030e0c954f4bc9">Cy_SD_Host_GetCsd</a> (SDHC_Type *base, uint32_t *csd, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *context)</td></tr>
<tr class="memdesc:ga19426622f0a7b92579030e0c954f4bc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Card Specific Data (CSD) register contents.  <a href="#ga19426622f0a7b92579030e0c954f4bc9">More...</a><br /></td></tr>
<tr class="separator:ga19426622f0a7b92579030e0c954f4bc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga695e1d4ea5e8fb972bc1feeadbb4e881"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga695e1d4ea5e8fb972bc1feeadbb4e881">Cy_SD_Host_GetExtCsd</a> (SDHC_Type *base, uint32_t *extCsd, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *context)</td></tr>
<tr class="memdesc:ga695e1d4ea5e8fb972bc1feeadbb4e881"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the EXTCSD Register contents.  <a href="#ga695e1d4ea5e8fb972bc1feeadbb4e881">More...</a><br /></td></tr>
<tr class="separator:ga695e1d4ea5e8fb972bc1feeadbb4e881"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaadc003ea82247c8c5057b1168a99ae2c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gaadc003ea82247c8c5057b1168a99ae2c">Cy_SD_Host_GetRca</a> (SDHC_Type *base)</td></tr>
<tr class="memdesc:gaadc003ea82247c8c5057b1168a99ae2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the Relative Card Address (RCA) register from the card.  <a href="#gaadc003ea82247c8c5057b1168a99ae2c">More...</a><br /></td></tr>
<tr class="separator:gaadc003ea82247c8c5057b1168a99ae2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4dd9d7e623f1c27c04490c48e9698e54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga4dd9d7e623f1c27c04490c48e9698e54">Cy_SD_Host_GetScr</a> (SDHC_Type *base, uint32_t *scr, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *context)</td></tr>
<tr class="memdesc:ga4dd9d7e623f1c27c04490c48e9698e54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the SD Card Configuration Register (SCR) Register contents.  <a href="#ga4dd9d7e623f1c27c04490c48e9698e54">More...</a><br /></td></tr>
<tr class="separator:ga4dd9d7e623f1c27c04490c48e9698e54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3571becec1bbf64c3ba0fae36fe65fc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gaf3571becec1bbf64c3ba0fae36fe65fc">Cy_SD_Host_GetPresentState</a> (SDHC_Type const *base)</td></tr>
<tr class="memdesc:gaf3571becec1bbf64c3ba0fae36fe65fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the values of the present state register.  <a href="#gaf3571becec1bbf64c3ba0fae36fe65fc">More...</a><br /></td></tr>
<tr class="separator:gaf3571becec1bbf64c3ba0fae36fe65fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc789757b3705982647dae009225d149"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#gafc789757b3705982647dae009225d149">Cy_SD_Host_IsCardConnected</a> (SDHC_Type const *base)</td></tr>
<tr class="memdesc:gafc789757b3705982647dae009225d149"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if a card is currently connected.  <a href="#gafc789757b3705982647dae009225d149">More...</a><br /></td></tr>
<tr class="separator:gafc789757b3705982647dae009225d149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga602f69704f064f99daf947c1af04318b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga602f69704f064f99daf947c1af04318b">Cy_SD_Host_SoftwareReset</a> (SDHC_Type *base, <a class="el" href="group__group__sd__host__enums.html#ga5b1cb8ecb92f2d3036a186cbe8a8bcdc">cy_en_sd_host_reset_t</a> reset)</td></tr>
<tr class="memdesc:ga602f69704f064f99daf947c1af04318b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issues the software reset command to the SD card.  <a href="#ga602f69704f064f99daf947c1af04318b">More...</a><br /></td></tr>
<tr class="separator:ga602f69704f064f99daf947c1af04318b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga06ae777b53c8bcc0eeab12a7302af3be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__syspm__data__enumerates.html#ga601b1cb722cb091133caf33d8ab235ca">cy_en_syspm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga06ae777b53c8bcc0eeab12a7302af3be">Cy_SD_Host_DeepSleepCallback</a> (<a class="el" href="structcy__stc__syspm__callback__params__t.html">cy_stc_syspm_callback_params_t</a> *callbackParams, <a class="el" href="group__group__syspm__data__enumerates.html#gae06cd8869fe61d709ad6145ca9f3cd63">cy_en_syspm_callback_mode_t</a> <a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)</td></tr>
<tr class="memdesc:ga06ae777b53c8bcc0eeab12a7302af3be"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles the transition of the SD Host into and out of Deep Sleep mode.  <a href="#ga06ae777b53c8bcc0eeab12a7302af3be">More...</a><br /></td></tr>
<tr class="separator:ga06ae777b53c8bcc0eeab12a7302af3be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6f59baa83f0e65ea417e755fe6a105e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sd__host__low__level__functions.html#ga6f59baa83f0e65ea417e755fe6a105e3">Cy_SD_Host_GetBlockCount</a> (SDHC_Type *base, uint32_t *block_count, <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *context)</td></tr>
<tr class="memdesc:ga6f59baa83f0e65ea417e755fe6a105e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Block count in SD/eMMC Card.  <a href="#ga6f59baa83f0e65ea417e755fe6a105e3">More...</a><br /></td></tr>
<tr class="separator:ga6f59baa83f0e65ea417e755fe6a105e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga7e46a2df218aebc23faac7acdf5260da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e46a2df218aebc23faac7acdf5260da">&#9670;&nbsp;</a></span>Cy_SD_Host_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_Init </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__sd__host__init__config__t.html">cy_stc_sd_host_init_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SD host module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">config</td><td>The SD host module configuration.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="gafc7f356fa8eaf81ab1e4abafeb46064c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafc7f356fa8eaf81ab1e4abafeb46064c">&#9670;&nbsp;</a></span>Cy_SD_Host_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_DeInit </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Restores the SD Host block registers back to default. </p>
<p>This API also disables SDHC block and user is expect to enable it back using <a class="el" href="group__group__sd__host__low__level__functions.html#gad14bf4c715eaa282580d89bd2be1a420">Cy_SD_Host_Enable</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad14bf4c715eaa282580d89bd2be1a420"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad14bf4c715eaa282580d89bd2be1a420">&#9670;&nbsp;</a></span>Cy_SD_Host_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_Enable </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the SD host block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9a54017c0d4a99ca6ec8702e9ab4a2da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9a54017c0d4a99ca6ec8702e9ab4a2da">&#9670;&nbsp;</a></span>Cy_SD_Host_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_Disable </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the SD host block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga5fc064e2e929cafa26eb11bee7324ad5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5fc064e2e929cafa26eb11bee7324ad5">&#9670;&nbsp;</a></span>Cy_SD_Host_EnableSdClk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_EnableSdClk </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the SD clock (SD host drives the SDCLK line). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae619bd70f081a40c7e213712561d3dcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae619bd70f081a40c7e213712561d3dcc">&#9670;&nbsp;</a></span>Cy_SD_Host_DisableSdClk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_DisableSdClk </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the SD clock (The SD Host doesn't drive the SDCLK line). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga05c151683c3a30462faf988d6ad26ff1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga05c151683c3a30462faf988d6ad26ff1">&#9670;&nbsp;</a></span>Cy_SD_Host_SetSdClkDiv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SetSdClkDiv </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>clkDiv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the speed of the SD bus. </p>
<p>This function should be called along with <a class="el" href="group__group__sd__host__low__level__functions.html#ga5b5699a728dbab6eb0ca7d926e40a61c">Cy_SD_Host_SetHostSpeedMode</a> to configure the bus correctly.</p>
<dl class="section note"><dt>Note</dt><dd>The divider is clocked from the CLK_HF clock (100 MHz). To determine the SD bus speed divide the clock CLK_HF by the divider value passed in this function. The divider value is 2*clkDiv.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">clkDiv</td><td>The clock divider for the SD clock.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="gac3728dc79e71af7ee2b2521b38fa7a06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac3728dc79e71af7ee2b2521b38fa7a06">&#9670;&nbsp;</a></span>Cy_SD_Host_IsWpSet()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cy_SD_Host_IsWpSet </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the state of the write protect switch on the SD card. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>If user is using a custom pin to control write protection, user must implement weak <a class="el" href="group__group__sd__host__low__level__functions.html#gac3728dc79e71af7ee2b2521b38fa7a06" title="Returns the state of the write protect switch on the SD card. ">Cy_SD_Host_IsWpSet()</a> and read the pin status.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>bool true - the write protect is set, false - the write protect is not set. </dd></dl>

</div>
</div>
<a id="gae9adeccedaf9ba116531ca4192a22cd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae9adeccedaf9ba116531ca4192a22cd7">&#9670;&nbsp;</a></span>Cy_SD_Host_SetHostBusWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SetHostBusWidth </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#gaa37e16176a2e632a2ca02028f447a9eb">cy_en_sd_host_bus_width_t</a>&#160;</td>
          <td class="paramname"><em>width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Only changes the bus width on the host side. </p>
<p>It doesn't change the bus width on the card side. To change the bus width on the card, call <a class="el" href="group__group__sd__host__low__level__functions.html#ga4ae683654397bc8d3bc9c89d70bb3e98" title="Sends out the SD bus width changing command. ">Cy_SD_Host_SetBusWidth()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">width</td><td>The width of the data bus.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga4ae683654397bc8d3bc9c89d70bb3e98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4ae683654397bc8d3bc9c89d70bb3e98">&#9670;&nbsp;</a></span>Cy_SD_Host_SetBusWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SetBusWidth </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#gaa37e16176a2e632a2ca02028f447a9eb">cy_en_sd_host_bus_width_t</a>&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends out the SD bus width changing command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">width</td><td>The width of the data bus.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga5b5699a728dbab6eb0ca7d926e40a61c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5b5699a728dbab6eb0ca7d926e40a61c">&#9670;&nbsp;</a></span>Cy_SD_Host_SetHostSpeedMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SetHostSpeedMode </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#ga8c324f7e5938bf4866db55490f4dac01">cy_en_sd_host_bus_speed_mode_t</a>&#160;</td>
          <td class="paramname"><em>speedMode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Only updates the host register to indicate bus speed mode and the general purpose output register to select card clock input and output delay. </p>
<p>This function doesn't change the speed on the bus, or change anything in the card.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">speedMode</td><td>Bus Speed mode.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga0b48a86672163e3be31362d7b3de0730"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0b48a86672163e3be31362d7b3de0730">&#9670;&nbsp;</a></span>Cy_SD_Host_SetBusSpeedMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SetBusSpeedMode </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#ga8c324f7e5938bf4866db55490f4dac01">cy_en_sd_host_bus_speed_mode_t</a>&#160;</td>
          <td class="paramname"><em>speedMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Negotiates with the card to change the bus speed mode of the card and the host. </p>
<p>It doesn't change the SD clock frequency that must be done separately.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">speedMode</td><td>Bus speed mode.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga215d6f84f99c8177d8c5a6ae178ca67a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga215d6f84f99c8177d8c5a6ae178ca67a">&#9670;&nbsp;</a></span>Cy_SD_Host_SelBusVoltage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SelBusVoltage </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable18VSignal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Negotiates with the SD card to change the bus signaling level to 1.8V. </p>
<p>After this function is called, the card is in the ready state.</p>
<dl class="section note"><dt>Note</dt><dd>The host needs to change the regulator supplying voltage to the VDDIO of the SD block in order to operate at 1.8V. </dd>
<dd>
This function changes RCA to 0 in the context. RCA in the context should be updated (context.RCA = <a class="el" href="group__group__sd__host__low__level__functions.html#gaadc003ea82247c8c5057b1168a99ae2c" title="Reads the Relative Card Address (RCA) register from the card. ">Cy_SD_Host_GetRca()</a>;) when the card is in the Identification state. </dd>
<dd>
This function is applicable for SD cards only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">enable18VSignal</td><td>If true, use the 1.8V signaling, false - use the 3.3V signaling.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>The SD card power supply should be disabled and initialized again when this function returns CY_SD_HOST_ERROR_UNUSABLE_CARD.</dd>
<dd>
The dedicated io_volt_sel pin is used to change the regulator supplying voltage to the VDDIO of the SD block in order to operate at 1.8V. To configure the custom IO pin in order to control (using the GPIO driver) the regulator supplying voltage, the user must implement weak <a class="el" href="group__group__sd__host__low__level__functions.html#ga307ae5aea7a503f9cac590dd895a8d36" title="Changes the logic level on the sd_io_volt_sel line. ">Cy_SD_Host_ChangeIoVoltage()</a>. Also, this function must set the SIGNALING_EN bit of the SDHC_CORE_HOST_CTRL2_R register when ioVoltage = CY_SD_HOST_IO_VOLT_1_8V. </dd></dl>

</div>
</div>
<a id="ga89cf0f720dca3e57244dbb736efd0736"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga89cf0f720dca3e57244dbb736efd0736">&#9670;&nbsp;</a></span>Cy_SD_Host_EnableCardVoltage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_EnableCardVoltage </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the card_if_pwr_en pin high. </p>
<p>This pin can be used to enable a voltage regulator used to power the card.</p>
<dl class="section note"><dt>Note</dt><dd>If user is using a custom pin/regulator to enable card voltage, user must implement weak <a class="el" href="group__group__sd__host__low__level__functions.html#ga89cf0f720dca3e57244dbb736efd0736" title="Sets the card_if_pwr_en pin high. ">Cy_SD_Host_EnableCardVoltage()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0991c633c61e309f5c2167296e014ee6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0991c633c61e309f5c2167296e014ee6">&#9670;&nbsp;</a></span>Cy_SD_Host_DisableCardVoltage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_DisableCardVoltage </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the card_if_pwr_en pin low. </p>
<p>This pin can be used to disable a voltage regulator used to power the card.</p>
<dl class="section note"><dt>Note</dt><dd>If user is using a custom pin/regulator to disable card voltage, user must implement weak <a class="el" href="group__group__sd__host__low__level__functions.html#ga0991c633c61e309f5c2167296e014ee6" title="Sets the card_if_pwr_en pin low. ">Cy_SD_Host_DisableCardVoltage()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad575d00f4e29d87dd3221ff84b0d855c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad575d00f4e29d87dd3221ff84b0d855c">&#9670;&nbsp;</a></span>Cy_SD_Host_GetResponse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetResponse </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>responsePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>largeResponse</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function reads the response register from the last completed command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*responsePtr</td><td>The pointer to response data.</td></tr>
    <tr><td class="paramname">largeResponse</td><td>If true, the response is 136 bits, false - 32 bits.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga98fe407a6f55d8d7ae0dd1c5defa41df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga98fe407a6f55d8d7ae0dd1c5defa41df">&#9670;&nbsp;</a></span>Cy_SD_Host_SendCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_SendCommand </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__cmd__config__t.html">cy_stc_sd_host_cmd_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts sending a command on the SD bus. </p>
<p>If the command uses the data lines <a class="el" href="group__group__sd__host__low__level__functions.html#ga0bc6396147a2b2aa4915a2d1ef3677c1" title="Initializes the SD block for a data transfer. ">Cy_SD_Host_InitDataTransfer()</a> must be call first. This function returns before the command completes. To determine if the command is done, read the Normal Interrupt Status register and check the CMD_COMPLETE flag. To determine if the entire transfer is done check the XFER_COMPLETE flag. Also the interrupt is used and flags are set on these events in an ISR. </p><dl class="section note"><dt>Note</dt><dd>It is the user's responsibility to clear the CY_SD_HOST_CMD_COMPLETE flag after calling this function.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*config</td><td>The configuration structure for the command.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga0bc6396147a2b2aa4915a2d1ef3677c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0bc6396147a2b2aa4915a2d1ef3677c1">&#9670;&nbsp;</a></span>Cy_SD_Host_InitDataTransfer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_InitDataTransfer </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__data__config__t.html">cy_stc_sd_host_data_config_t</a> const *&#160;</td>
          <td class="paramname"><em>dataConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SD block for a data transfer. </p>
<p>It does not start a transfer. To start a transfer call <a class="el" href="group__group__sd__host__low__level__functions.html#ga98fe407a6f55d8d7ae0dd1c5defa41df" title="Starts sending a command on the SD bus. ">Cy_SD_Host_SendCommand()</a> after calling this function. If DMA is not used for data transfer, the buffer needs to be filled with data first if this is a write.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">dataConfig</td><td>The pointer to the data transfer configuration structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga8b1c2ac3b8b82b03500c4bf560322da8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8b1c2ac3b8b82b03500c4bf560322da8">&#9670;&nbsp;</a></span>Cy_SD_Host_BufferRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SD_Host_BufferRead </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads 32-bits of data from the read buffer. </p>
<p>Only use this function if not using SD block DMA to transfer data from buffer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>uint32_t Data that is being read. </dd></dl>

</div>
</div>
<a id="gaa036946603cdda48270920a197a5009e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa036946603cdda48270920a197a5009e">&#9670;&nbsp;</a></span>Cy_SD_Host_BufferWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_BufferWrite </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes 32-bits of data into the write buffer. </p>
<p>Only use this function if not using SD block DMA to transfer data to buffer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">data</td><td>Data to be written.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga307ae5aea7a503f9cac590dd895a8d36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga307ae5aea7a503f9cac590dd895a8d36">&#9670;&nbsp;</a></span>Cy_SD_Host_ChangeIoVoltage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_ChangeIoVoltage </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#ga4f01f971b4eb071a32474c7603b2e721">cy_en_sd_host_io_voltage_t</a>&#160;</td>
          <td class="paramname"><em>ioVoltage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the logic level on the sd_io_volt_sel line. </p>
<p>It assumes that this line is used to control a regulator connected to the VDDIO of the PSoC. This regulator allows for switching between the 3.3V and 1.8V signaling.</p>
<dl class="section note"><dt>Note</dt><dd>The dedicated io_volt_sel pin is used to change the regulator supplying voltage to the VDDIO of the SD block in order to operate at 1.8V. To configure the custom IO pin in order to control (using the GPIO driver) the regulator supplying voltage, the user must implement weak <a class="el" href="group__group__sd__host__low__level__functions.html#ga307ae5aea7a503f9cac590dd895a8d36" title="Changes the logic level on the sd_io_volt_sel line. ">Cy_SD_Host_ChangeIoVoltage()</a>. Also, this function must set the SIGNALING_EN bit of the SDHC_CORE_HOST_CTRL2_R register when ioVoltage = CY_SD_HOST_IO_VOLT_1_8V.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">ioVoltage</td><td>The voltage for IO. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab9d234202bf66b389167ea2dcfe8b710"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab9d234202bf66b389167ea2dcfe8b710">&#9670;&nbsp;</a></span>Cy_SD_Host_StopAtBlockGap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_StopAtBlockGap </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Commands SD host to stop transmitting at the next block gap. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga098dd753105bd0d60e7ef828c1fdf5ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga098dd753105bd0d60e7ef828c1fdf5ba">&#9670;&nbsp;</a></span>Cy_SD_Host_ContinueFromBlockGap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_ContinueFromBlockGap </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Commands SD host to continue transmitting after stopping at the block gap. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga72681d651cdcb34d955e78eba3345562"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga72681d651cdcb34d955e78eba3345562">&#9670;&nbsp;</a></span>Cy_SD_Host_GetAutoCmdErrStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SD_Host_GetAutoCmdErrStatus </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the SD host error status of the auto command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>uint32_t The bit mask of the Auto Command status. </dd></dl>

</div>
</div>
<a id="ga892dfd6c9511faea425c0aa5164a4fdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga892dfd6c9511faea425c0aa5164a4fdc">&#9670;&nbsp;</a></span>Cy_SD_Host_EnableAutoCmd23()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_EnableAutoCmd23 </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>If the card supports AutoCmd23 call this function to enable it in the host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a>. </dd></dl>

</div>
</div>
<a id="gab3adb857290fe0a241a3bb99a8fda23d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab3adb857290fe0a241a3bb99a8fda23d">&#9670;&nbsp;</a></span>Cy_SD_Host_DisableAutoCmd23()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_DisableAutoCmd23 </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes support for AutoCmd23 if it was previously set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga27fbcd722e12d049bacb59ad580690b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga27fbcd722e12d049bacb59ad580690b5">&#9670;&nbsp;</a></span>Cy_SD_Host_EnableAsyncInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_EnableAsyncInterrupt </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the Asynchronous Interrupt for SDIO cards. </p>
<p>Set this only if the card supports this feature.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga80e93b42a4ab13cb6ada7549bde40f46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga80e93b42a4ab13cb6ada7549bde40f46">&#9670;&nbsp;</a></span>Cy_SD_Host_DisableAsyncInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_DisableAsyncInterrupt </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes the support for the Asynchronous Interrupt if it was previously set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga54d0a014d47b3f894bb586ad2eab450b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54d0a014d47b3f894bb586ad2eab450b">&#9670;&nbsp;</a></span>Cy_SD_Host_GetAdmaErrorStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_SD_Host_GetAdmaErrorStatus </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the ADMA Error Status register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>uint32_t The bit mask of ADMA Error Status. </dd></dl>

</div>
</div>
<a id="ga04635958742edb88535fc805f96f5be6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga04635958742edb88535fc805f96f5be6">&#9670;&nbsp;</a></span>Cy_SD_Host_EMMC_Reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SD_Host_EMMC_Reset </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the eMMC card. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab0b3e43c54a84f9261815171dc97f6dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab0b3e43c54a84f9261815171dc97f6dd">&#9670;&nbsp;</a></span>Cy_SD_Host_AbortTransfer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_AbortTransfer </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calling this function causes abortion of the currently executing command with data. </p>
<p>It doesn't issue a reset, that is the users responsibility.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga49d3fcbc81b0856c61706015856337e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga49d3fcbc81b0856c61706015856337e9">&#9670;&nbsp;</a></span>Cy_SD_Host_WriteProtect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_WriteProtect </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#ga7b5d22232dfd02d7e11ecf4100232a38">cy_en_sd_host_write_protect_t</a>&#160;</td>
          <td class="paramname"><em>writeProtect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write protects the blocks of data from the SD card. </p>
<p>This function should only be called after Cy_SD_Host_SDCard_Init()/eMMC_Init().</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">writeProtect</td><td><a class="el" href="group__group__sd__host__enums.html#ga7b5d22232dfd02d7e11ecf4100232a38">cy_en_sd_host_write_protect_t</a>.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="gacfa588e2d3797fab335cc8880d59d0ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacfa588e2d3797fab335cc8880d59d0ee">&#9670;&nbsp;</a></span>Cy_SD_Host_GetCardStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SD_Host_GetCardStatus </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the card status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>uint32_t The card status (the result of the CMD13 command). To get the details of card status, "AND" returned value with <a class="el" href="group__group__sd__host__enums.html#ga0b6028f95a0398b84b9e3c214c1ab6ae">cy_en_sd_host_r1_response_t</a>. </dd></dl>

</div>
</div>
<a id="ga64d07e5873b517f19aa6b556b9558e19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga64d07e5873b517f19aa6b556b9558e19">&#9670;&nbsp;</a></span>Cy_SD_Host_GetSdStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetSdStatus </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>sdStatus</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the SD status from the card. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*sdStatus</td><td>The pointer to where to store the SD status array.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="gab7781c74903700d79ca818fc7f50af0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab7781c74903700d79ca818fc7f50af0b">&#9670;&nbsp;</a></span>Cy_SD_Host_GetOcr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SD_Host_GetOcr </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the Operating Condition Register (OCR) register from the card. </p>
<dl class="section note"><dt>Note</dt><dd>This function can be used only if the card is in the Idle state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>uint32_t The OCR register.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>For combo cards, the function returns the OCR register for the IO portion only. </dd></dl>

</div>
</div>
<a id="ga696ef05ed804ae1fb21147bdded903a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga696ef05ed804ae1fb21147bdded903a9">&#9670;&nbsp;</a></span>Cy_SD_Host_GetCid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetCid </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>cid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the Card Identification Register (CID) contents. </p>
<dl class="section note"><dt>Note</dt><dd>This function can be used only if the card is in the Ready state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">cid</td><td>The pointer to where to store the CID register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga19426622f0a7b92579030e0c954f4bc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19426622f0a7b92579030e0c954f4bc9">&#9670;&nbsp;</a></span>Cy_SD_Host_GetCsd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetCsd </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>csd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the Card Specific Data (CSD) register contents. </p>
<dl class="section note"><dt>Note</dt><dd>This function can be used only if the card is in the Stand-by state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*csd</td><td>The pointer to where to store the CSD register.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="ga695e1d4ea5e8fb972bc1feeadbb4e881"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga695e1d4ea5e8fb972bc1feeadbb4e881">&#9670;&nbsp;</a></span>Cy_SD_Host_GetExtCsd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetExtCsd </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>extCsd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the EXTCSD Register contents. </p>
<p>This is only for EMMC cards. There are 512 bytes of data being read.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*extCsd</td><td>The pointer to where to store the EXTCSD register.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="gaadc003ea82247c8c5057b1168a99ae2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaadc003ea82247c8c5057b1168a99ae2c">&#9670;&nbsp;</a></span>Cy_SD_Host_GetRca()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SD_Host_GetRca </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the Relative Card Address (RCA) register from the card. </p>
<dl class="section note"><dt>Note</dt><dd>This function can be used only if the card is in the Identification or Stand-by state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>uint32_t The RCA register. </dd></dl>

</div>
</div>
<a id="ga4dd9d7e623f1c27c04490c48e9698e54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4dd9d7e623f1c27c04490c48e9698e54">&#9670;&nbsp;</a></span>Cy_SD_Host_GetScr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetScr </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>scr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> const *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the SD Card Configuration Register (SCR) Register contents. </p>
<dl class="section note"><dt>Note</dt><dd>This function can be used only if the card is in the Transition state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*scr</td><td>The pointer to where to store the SCR register.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure. If only the SD host functions which do not require context will be used, pass NULL as the pointer to the context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
<a id="gaf3571becec1bbf64c3ba0fae36fe65fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf3571becec1bbf64c3ba0fae36fe65fc">&#9670;&nbsp;</a></span>Cy_SD_Host_GetPresentState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SD_Host_GetPresentState </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the values of the present state register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the present state register. </dd></dl>

</div>
</div>
<a id="gafc789757b3705982647dae009225d149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafc789757b3705982647dae009225d149">&#9670;&nbsp;</a></span>Cy_SD_Host_IsCardConnected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cy_SD_Host_IsCardConnected </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks to see if a card is currently connected. </p>
<dl class="section note"><dt>Note</dt><dd>You can use any GPIO custom pin for Card Detect. Add the SD Host driver <a class="el" href="group__group__sd__host__low__level__functions.html#gafc789757b3705982647dae009225d149" title="Checks to see if a card is currently connected. ">Cy_SD_Host_IsCardConnected()</a> function with the __WEAK type to your code. This function could read the value from any GPIO pin and return true when the card is connected.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bool true - the card is connected, false - the card is removed (not connected). </dd></dl>

</div>
</div>
<a id="ga602f69704f064f99daf947c1af04318b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga602f69704f064f99daf947c1af04318b">&#9670;&nbsp;</a></span>Cy_SD_Host_SoftwareReset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SD_Host_SoftwareReset </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sd__host__enums.html#ga5b1cb8ecb92f2d3036a186cbe8a8bcdc">cy_en_sd_host_reset_t</a>&#160;</td>
          <td class="paramname"><em>reset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Issues the software reset command to the SD card. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">reset</td><td>The reset type. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga06ae777b53c8bcc0eeab12a7302af3be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga06ae777b53c8bcc0eeab12a7302af3be">&#9670;&nbsp;</a></span>Cy_SD_Host_DeepSleepCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__syspm__data__enumerates.html#ga601b1cb722cb091133caf33d8ab235ca">cy_en_syspm_status_t</a> Cy_SD_Host_DeepSleepCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__stc__syspm__callback__params__t.html">cy_stc_syspm_callback_params_t</a> *&#160;</td>
          <td class="paramname"><em>callbackParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__syspm__data__enumerates.html#gae06cd8869fe61d709ad6145ca9f3cd63">cy_en_syspm_callback_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles the transition of the SD Host into and out of Deep Sleep mode. </p>
<p>It disables SD CLK before going to Deep Sleep mode and enables SD CLK after wake up from Deep Sleep mode. If the DAT line is active, or a read (write) transfer is being executed on the bus, the device cannot enter Deep Sleep mode.</p>
<p>This function must be called during execution of <a class="el" href="group__group__syspm__functions__power.html#ga5150c28fe4d2626720c1fbf74b3111ca">Cy_SysPm_CpuEnterDeepSleep</a>. To do it, register this function as a callback before calling <a class="el" href="group__group__syspm__functions__power.html#ga5150c28fe4d2626720c1fbf74b3111ca">Cy_SysPm_CpuEnterDeepSleep</a> : specify <a class="el" href="group__group__syspm__data__enumerates.html#gga8c2960c0164ead1cfa86e7d6846b6ff0abc51d74deff0ceea4304b01b2d57bd9d">CY_SYSPM_DEEPSLEEP</a> as the callback type and call <a class="el" href="group__group__syspm__functions__callback.html#ga0d58b00c8dc764a6371590f70e2f73c7">Cy_SysPm_RegisterCallback</a>.</p>
<dl class="section note"><dt>Note</dt><dd>When waking up from Deep Sleep, the SD Host driver requires up to 1 us for clock stabilization. By default the SD Host driver will wait this length of time on power up. The waiting loop is implemented in this function. If the application is time sensitive this delay can be overridden by the application by defining <a class="el" href="group__group__sd__host__macros__general__purpose.html#gae6b0b7d64c1290282c330f76b0ccb65d">CY_SD_HOST_CLK_RAMP_UP_TIME_US_WAKEUP</a>. This allows the application to perform other operations while the clock is stabilizing in the background. However, the application must still make sure that the SD Host clock has had time to stabilize before attempting to use the SD card. The recommended way to override the value is to specify this as a custom define on the compiler command line. This can be done by appending the entry to the DEFINES variable in the application Makefile. Eg: DEFINES+=CY_SD_HOST_CLK_RAMP_UP_TIME_US_WAKEUP=40.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">callbackParams</td><td>The pointer to the callback parameters structure <a class="el" href="structcy__stc__syspm__callback__params__t.html">cy_stc_syspm_callback_params_t</a>.</td></tr>
    <tr><td class="paramname">mode</td><td>Callback mode, see <a class="el" href="group__group__syspm__data__enumerates.html#gae06cd8869fe61d709ad6145ca9f3cd63">cy_en_syspm_callback_mode_t</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__syspm__data__enumerates.html#ga601b1cb722cb091133caf33d8ab235ca">cy_en_syspm_status_t</a> </dd></dl>

</div>
</div>
<a id="ga6f59baa83f0e65ea417e755fe6a105e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6f59baa83f0e65ea417e755fe6a105e3">&#9670;&nbsp;</a></span>Cy_SD_Host_GetBlockCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> Cy_SD_Host_GetBlockCount </td>
          <td>(</td>
          <td class="paramtype">SDHC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>block_count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the Block count in SD/eMMC Card. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The SD host registers structure pointer.</td></tr>
    <tr><td class="paramname">*block_count</td><td>The pointer to store the block_count.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__sd__host__context__t.html">cy_stc_sd_host_context_t</a> allocated by the user. The structure is used during the SD host operation for internal configuration and data retention. The user must not modify anything in this structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__sd__host__enums.html#gabbf5bb6a131cd8b9c529b7e36b35fe23">cy_en_sd_host_status_t</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
